<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script src="js/axios-0.18.0.js"></script>
    <script>
        axios({
            method: "get",
            url: "https://console-mock.apipost.cn/mock/1faf4ce6-e507-45af-9240-13367545a76b/emp/list"
        }).then(function(response){
            // 响应回来的时候调用的函数  ===> 回调函数
            console.log(response.data);
        });


        axios
            .get("https://console-mock.apipost.cn/mock/1faf4ce6-e507-45af-9240-13367545a76b/emp/list")
            .then(function(response){
                // 响应回来的时候调用的函数  ===> 回调函数
                console.log(response.data);
            });

        axios
            .post("https://console-mock.apipost.cn/mock/1faf4ce6-e507-45af-9240-13367545a76b/emp/list","xxx=1111&yyy=222")
            .then(function(response){
                // 响应回来的时候调用的函数  ===> 回调函数
                console.log(response.data);
            });
    </script>
</body>
</html>